 {

        var o = require("./UISoundManager.js"), i = require("./UIPopupBase.js");
        cc.Class({
            extends: i,
            properties: {
                sp1: {
                    default: null,
                    type: cc.Node
                },
                sp2: {
                    default: null,
                    type: cc.Node
                },
                total: {
                    default: null,
                    type: cc.Label
                },
                goldNum: {
                    default: null,
                    type: cc.Label
                },
                tipsLabel: {
                    default: null,
                    type: cc.Label
                }
            },
            init: function () {
            },
            show: function (e, t) {
                console.log("rewardAlert data====", e), this.goldNum.string = e.amount || 0, this.confirmCallback = e.confirmCallback,
                    this.tipsLabel.string = "您的金币不足！今天第" + (e.count - e.left + 1) + "次赠送" + e.amount + "金币，还剩" + (e.left - 1) + "次。";
                var n = e.count - e.left + 1;
                n && 3 == n && (this.sp1.active = !1, this.sp2.active = !0, this.tipsLabel.string = "您的金币不足！今天第" + (e.count - e.left + 1) + "次赠送" + e.amount + "金币，分享立即领取"),
                t && (this.successCallback = t);
            },
            onBtnCharge: function () {
                if (o.playEffect("select"), this.sp1 && this.sp1.active) Global.msgHandler.requestGetRelief(),
                this.confirmCallback && this.confirmCallback(Global.config.SEAT_DOWN), this.closePanel(); else if (this.sp2 && this.sp2.active) {
                    var e = this;
                    Global.utils_Share.shareToGroup(Global.config.sharePointId.poolRewardInvite, function (t) {
                        var n = !1;
                        t && (n = Global.utils_Share.checkOpenGId(t)), console.log("rewardAlert onBtnCharge", t, n),
                            n ? Global.utils.showNodeCommon("换个群试试，不要频繁打扰同一个群哦！", 3) : (e.closePanel(), e.successCallback && e.successCallback());
                    });
                }
            },
            OnPanelClose: function () {
                if (o.playEffect("select"), this.confirmCallback && this.confirmCallback(Global.config.SEAT_DOWN),
                    !Global.tableModel.getIsGameEnd()) {
                    var e = Global.tableModel.getPlayerModel(Global.config.SEAT_DOWN);
                    e && Global.tableModel.requestCharge(-1, e.getSeatId());
                }
                this.closePanel();
            }
        })
    }